package com.wootion.cims.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wootion.cims.module.systemsetting.role.model.SysRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @Author: LanQiang
 * @Date: 2022/11/22/16:04
 * @Description: ����xxx
 */
@Mapper
public interface SysRoleDao extends BaseMapper<SysRole> {
    /**
     * 根据id,查询角色名称（roleKey）
     */
    String findByRoles(@Param("id") String id);

    /**
     * 根据角色id插叙
     */
    SysRole findRole(@Param("id") String id);

    SysRole findByUserId(@Param("id")String id);
}
